/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.fx.retail.entity;

import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 消费者换货单Entity
 * @author jyangye
 * @version 2018-01-16
 */
public class FxDeaConsumerexchangeorder extends DataEntity<FxDeaConsumerexchangeorder> {
	
	private static final long serialVersionUID = 1L;
	private String consumerexchangeorderid;		// consumerexchangeorderid
	private String userid;		// userid
	private String ordercode;		// ordercode
	private Integer orderdate;		// orderdate
	private Integer retaildealerid;		// retaildealerid
	private Integer retaildealerrelationid;		// retaildealerrelationid
	private Integer retailwarehouseid;		// retailwarehouseid
	private Integer exchangedealerid;		// exchangedealerid
	private Integer exchangedealerrelationid;		// exchangedealerrelationid
	private Integer exchangewarehouseid;		// exchangewarehouseid
	private String handleremployeeid;		// handleremployeeid
	private String checkeremployeeid;		// checkeremployeeid
	private String checkstate;		// checkstate
	private Date checkdate;		// checkdate
	private Date makedate;		// makedate
	private String thisverifystate;		// thisverifystate
	private Date checkpasseddate;		// checkpasseddate
	private Integer warescount;		// warescount
	private String orderstate;		// orderstate
	private String remark;		// remark
	private Date updateflag;		// updateflag
	private String backsntargetwarehouseid;		// backsntargetwarehouseid
	private String whallotorderid;		// whallotorderid
	private String whallotordercode;		// whallotordercode
	private Date beginMakedate;		// 开始 makedate
	private Date endMakedate;		// 结束 makedate
	
	public FxDeaConsumerexchangeorder() {
		super();
	}

	public FxDeaConsumerexchangeorder(String id){
		super(id);
	}

	@Length(min=1, max=32, message="consumerexchangeorderid长度必须介于 1 和 32 之间")
	@ExcelField(title="consumerexchangeorderid", align=2, sort=10)
	public String getConsumerexchangeorderid() {
		return consumerexchangeorderid;
	}

	public void setConsumerexchangeorderid(String consumerexchangeorderid) {
		this.consumerexchangeorderid = consumerexchangeorderid;
	}
	
	@Length(min=1, max=32, message="userid长度必须介于 1 和 32 之间")
	@ExcelField(title="userid", align=2, sort=20)
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}
	
	@Length(min=1, max=30, message="ordercode长度必须介于 1 和 30 之间")
	@ExcelField(title="ordercode", align=2, sort=30)
	public String getOrdercode() {
		return ordercode;
	}

	public void setOrdercode(String ordercode) {
		this.ordercode = ordercode;
	}
	
	@NotNull(message="orderdate不能为空")
	@ExcelField(title="orderdate", align=2, sort=40)
	public Integer getOrderdate() {
		return orderdate;
	}

	public void setOrderdate(Integer orderdate) {
		this.orderdate = orderdate;
	}
	
	@ExcelField(title="retaildealerid", align=2, sort=50)
	public Integer getRetaildealerid() {
		return retaildealerid;
	}

	public void setRetaildealerid(Integer retaildealerid) {
		this.retaildealerid = retaildealerid;
	}
	
	@ExcelField(title="retaildealerrelationid", align=2, sort=60)
	public Integer getRetaildealerrelationid() {
		return retaildealerrelationid;
	}

	public void setRetaildealerrelationid(Integer retaildealerrelationid) {
		this.retaildealerrelationid = retaildealerrelationid;
	}
	
	@ExcelField(title="retailwarehouseid", align=2, sort=70)
	public Integer getRetailwarehouseid() {
		return retailwarehouseid;
	}

	public void setRetailwarehouseid(Integer retailwarehouseid) {
		this.retailwarehouseid = retailwarehouseid;
	}
	
	@ExcelField(title="exchangedealerid", align=2, sort=80)
	public Integer getExchangedealerid() {
		return exchangedealerid;
	}

	public void setExchangedealerid(Integer exchangedealerid) {
		this.exchangedealerid = exchangedealerid;
	}
	
	@ExcelField(title="exchangedealerrelationid", align=2, sort=90)
	public Integer getExchangedealerrelationid() {
		return exchangedealerrelationid;
	}

	public void setExchangedealerrelationid(Integer exchangedealerrelationid) {
		this.exchangedealerrelationid = exchangedealerrelationid;
	}
	
	@ExcelField(title="exchangewarehouseid", align=2, sort=100)
	public Integer getExchangewarehouseid() {
		return exchangewarehouseid;
	}

	public void setExchangewarehouseid(Integer exchangewarehouseid) {
		this.exchangewarehouseid = exchangewarehouseid;
	}
	
	@Length(min=0, max=32, message="handleremployeeid长度必须介于 0 和 32 之间")
	@ExcelField(title="handleremployeeid", align=2, sort=110)
	public String getHandleremployeeid() {
		return handleremployeeid;
	}

	public void setHandleremployeeid(String handleremployeeid) {
		this.handleremployeeid = handleremployeeid;
	}
	
	@Length(min=0, max=32, message="checkeremployeeid长度必须介于 0 和 32 之间")
	@ExcelField(title="checkeremployeeid", align=2, sort=120)
	public String getCheckeremployeeid() {
		return checkeremployeeid;
	}

	public void setCheckeremployeeid(String checkeremployeeid) {
		this.checkeremployeeid = checkeremployeeid;
	}
	
	@Length(min=0, max=1, message="checkstate长度必须介于 0 和 1 之间")
	@ExcelField(title="checkstate", align=2, sort=130)
	public String getCheckstate() {
		return checkstate;
	}

	public void setCheckstate(String checkstate) {
		this.checkstate = checkstate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="checkdate", align=2, sort=140)
	public Date getCheckdate() {
		return checkdate;
	}

	public void setCheckdate(Date checkdate) {
		this.checkdate = checkdate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="makedate不能为空")
	@ExcelField(title="makedate", align=2, sort=150)
	public Date getMakedate() {
		return makedate;
	}

	public void setMakedate(Date makedate) {
		this.makedate = makedate;
	}
	
	@Length(min=1, max=1, message="thisverifystate长度必须介于 1 和 1 之间")
	@ExcelField(title="thisverifystate", align=2, sort=160)
	public String getThisverifystate() {
		return thisverifystate;
	}

	public void setThisverifystate(String thisverifystate) {
		this.thisverifystate = thisverifystate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="checkpasseddate", align=2, sort=170)
	public Date getCheckpasseddate() {
		return checkpasseddate;
	}

	public void setCheckpasseddate(Date checkpasseddate) {
		this.checkpasseddate = checkpasseddate;
	}
	
	@ExcelField(title="warescount", align=2, sort=180)
	public Integer getWarescount() {
		return warescount;
	}

	public void setWarescount(Integer warescount) {
		this.warescount = warescount;
	}
	
	@Length(min=0, max=1, message="orderstate长度必须介于 0 和 1 之间")
	@ExcelField(title="orderstate", align=2, sort=190)
	public String getOrderstate() {
		return orderstate;
	}

	public void setOrderstate(String orderstate) {
		this.orderstate = orderstate;
	}
	
	@Length(min=0, max=500, message="remark长度必须介于 0 和 500 之间")
	@ExcelField(title="remark", align=2, sort=200)
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="updateflag不能为空")
	@ExcelField(title="updateflag", align=2, sort=210)
	public Date getUpdateflag() {
		return updateflag;
	}

	public void setUpdateflag(Date updateflag) {
		this.updateflag = updateflag;
	}
	
	@Length(min=0, max=11, message="backsntargetwarehouseid长度必须介于 0 和 11 之间")
	@ExcelField(title="backsntargetwarehouseid", align=2, sort=220)
	public String getBacksntargetwarehouseid() {
		return backsntargetwarehouseid;
	}

	public void setBacksntargetwarehouseid(String backsntargetwarehouseid) {
		this.backsntargetwarehouseid = backsntargetwarehouseid;
	}
	
	@Length(min=0, max=32, message="whallotorderid长度必须介于 0 和 32 之间")
	@ExcelField(title="whallotorderid", align=2, sort=230)
	public String getWhallotorderid() {
		return whallotorderid;
	}

	public void setWhallotorderid(String whallotorderid) {
		this.whallotorderid = whallotorderid;
	}
	
	@Length(min=0, max=30, message="whallotordercode长度必须介于 0 和 30 之间")
	@ExcelField(title="whallotordercode", align=2, sort=240)
	public String getWhallotordercode() {
		return whallotordercode;
	}

	public void setWhallotordercode(String whallotordercode) {
		this.whallotordercode = whallotordercode;
	}
	
	public Date getBeginMakedate() {
		return beginMakedate;
	}

	public void setBeginMakedate(Date beginMakedate) {
		this.beginMakedate = beginMakedate;
	}
	
	public Date getEndMakedate() {
		return endMakedate;
	}

	public void setEndMakedate(Date endMakedate) {
		this.endMakedate = endMakedate;
	}
		
}